I have wirtten a code that generate a textbox with attributes of the current view and some other things. |
Re: Export Function show exBox t1=text(exBox, "", results, 500, 500, false) }" This codetext is rubbish, it was a try to clear the textbox before i generate the textbox |
Re: Export Function
First of all, alway use "{ C O D E }" when posting code, so that the formatting does not get lost.
void calcStability (DBE) {
collectStabData()
results2 = results // store the results in result2 (for whatever reason)
set (t1,results)
}
// ...
void exportFileFunc (DBE) {
// ...
// Please uncomment me
// results2 = get t1 // read the textbox contents before writing it to a file
// write them to the file. Ignore the stuff the user changed
outData << results2
// ...
}
if (testFile "" == "true")
{if (confirm "Datei \"" filenameData "\" Overwirte?")
else
halt}
{Stream ...
}
if (testFile "" == "true") {
if (!confirm "...") halt
}
// continue with the export
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Export Function Mathias Mamsch - Mon Sep 13 03:49:04 EDT 2010
First of all, alway use "{ C O D E }" when posting code, so that the formatting does not get lost.
void calcStability (DBE) {
collectStabData()
results2 = results // store the results in result2 (for whatever reason)
set (t1,results)
}
// ...
void exportFileFunc (DBE) {
// ...
// Please uncomment me
// results2 = get t1 // read the textbox contents before writing it to a file
// write them to the file. Ignore the stuff the user changed
outData << results2
// ...
}
if (testFile "" == "true")
{if (confirm "Datei \"" filenameData "\" Overwirte?")
else
halt}
{Stream ...
}
if (testFile "" == "true") {
if (!confirm "...") halt
}
// continue with the export
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Okay thank you for your tips. It works. set(t1,"")
|
Re: Export Function SystemAdmin - Mon Sep 13 04:24:39 EDT 2010
Okay thank you for your tips. It works. set(t1,"")
If i use this code, it doesn't work
void calcStability (DBE) {
collectStabData()
set (t1,"")
set (t1,results)
}
|
Re: Export Function SystemAdmin - Mon Sep 13 07:36:21 EDT 2010
If i use this code, it doesn't work
void calcStability (DBE) {
collectStabData()
set (t1,"")
set (t1,results)
}
|
Re: Export Function SystemAdmin - Tue Sep 14 03:19:10 EDT 2010 You probably should clear your "results" buffer: setempty results
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|